package com.jman.login.clients;

import com.jman.login.domain.User;
import com.jman.login.dto.UserWithToken;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 代理类
 * 调用feign去获取到user对象
 */
public class Agent {
    public static UserWithToken getUserByPhone(UserClients clients, String phone){
        return clients.getUserByPhone(phone);
    }
}
